package com.youhome.service.service;

import com.github.pagehelper.PageInfo;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.BSendRecordSMS;
import com.youhome.service.model.Principal;
import com.youhome.service.response.SMS;
import com.youhome.service.response.SMSList;

import java.util.List;

/**
 * Created by chen365 on 2017/12/15.
 */
public interface SMSService {


    int notice(Integer type, Long id, String name, String phone);

    int send(Long userId, Integer tempId, List<SMS> sms) throws CustomException;

    String getSMSCode(String type, String phone, String shareId) throws CustomException;

    void send(Principal principal, Integer tempId, String smss) throws CustomException;

    PageInfo<BSendRecordSMS> selectByBean(Principal principal,Long gatherId, Integer pageNumber, Integer pageSize) throws CustomException;

    String getSMSCode(String phone) throws CustomException;
}
